#include"NamedPipe.hpp"


int main()
{
    NamedPipe named_pipe(fifoname);
    named_pipe.Create();
    named_pipe.OpenForRead();


    std::string message;
    while(true)
    {
        bool res=named_pipe.Read(&message);
        if(!res)
            break;
        std::cout<<"client say@ "<<message<<std::endl;
    }
    return 0;
}